package com.amos.boot.request;

import com.amos.boot.annotation.StringBlankNull;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * PROJECT: boot
 * DESCRIPTION: web请求表单
 *
 * @author amos.wang
 * @date 2019/4/30
 */
@Data
public class HelloFieldForm {

    @StringBlankNull
    private String name;

    @StringBlankNull(convert = StringBlankNull.Convert.NULL_2_BLANK)
    private String address;

    @NotNull
    private Integer age;

}
